#ifndef PLAYER_H
#define PLAYER_H

#include "Message.h"

#include <NxOgre.h>
#include <boost/asio.hpp>

class Server;

class Player
{
public:
	Player( );
	Player( Server* server, boost::asio::ip::udp::endpoint endpoint, ControlMessage* control, PlayerMessage* object);
	~Player();

	void update();

	boost::asio::ip::udp::endpoint _senderEndpoint;
	ControlMessage *_control;
	PlayerMessage *_object;
	NxOgre::Actor*					_actor;
	// NOTE: use static Server methods
	Server*							_server;
	float							_mouseXBefore, _mouseYBefore;
};

#endif
